<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@page import="java.sql.*"%>
<%@page import="java.util.*"%>
<link rel="stylesheet" href="css/jPages.css">
<script src="js/jquery-1.8.2.min.js"></script>
<script src="js/jPages.js"></script>
<script language="javascript" type="text/javascript">
	$(function() {
		$("div.holder").jPages({
			containerID : "itemContainer",
			previous : "上一页",
			next : "下一页",
			perPage : 6,
			delay : 100
		});
	});
</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>电子商城的后台</title>
<style type="text/css">

/* .style1 {
	color: #5F5F5F
} */
</style>
</head>
<link href="css/css.css" rel="stylesheet" type="text/css">
<body>


	<jsp:include page="bg-up.jsp" flush="true" />
	<table width="788" border="0" align="center" cellpadding="0"
		cellspacing="0">
		<tr>
			<td width="170" valign="top"><jsp:include page="bg-left.jsp"
					flush="true" /></td>
			<td width="618" align="center" valign="top" bgcolor="#FFFFFF"><br>

				<table width="610" height="25" border="0" cellpadding="0"
					cellspacing="0" background="image/bg_02.jpg">
					<tr>
						<td><div align="center">
								<strong>公告信息的查询</strong>
							</div></td>
					</tr>
				</table> <br> <%-- <div id="itemContainer">
					<c:forEach items="${listaff }" var="lstaff"> --%>
				<table width="90%" border="1" cellpadding="1" cellspacing="1"
					bordercolor="#FFFFFF" bgcolor="#CCCCCC">
					<tr>
						<td width="17%" height="25"><div align="center">数据编号</div></td>
						<td width="19%"><div align="center">公告标题</div></td>
						<td width="27%"><div align="center">公告发布时间</div></td>
						<td width="37%"><div align="center">操作</div></td>
					</tr>
				</table>
				<div id="itemContainer">
					<c:forEach items="${listaff }" var="lstaff">
						<table width="90%" border="1" cellpadding="1" cellspacing="1"
					bordercolor="#FFFFFF" bgcolor="#CCCCCC">
							<tr bgcolor="#FFFFFF">
								<td width="17%" height="30"><div align="center">${lstaff.id }</div></td>
								<td width="19%"><div align="center">${lstaff.name }</div></td>
								<td width="27%"><div align="center">${lstaff.issueTime }</div></td>
								<td width="37%"><div align="center">
										<a href="update?id=${lstaff.id }">修改</a>&nbsp;&nbsp; <a
											href="AfficheSee?id=${lstaff.id }">查询内容</a>&nbsp;&nbsp; <a
											href="deleteaffiche?id=${lstaff.id }"
											onclick="return confirm('确定删除?');">删除</a>
									</div></td>
							</tr>
					</c:forEach>
	</table>
	</div>
	<div class="holder" align="center"></div>
	<br>
	<table width="90%" border=0 align="center" cellpadding="0"
		cellspacing="0">
		<tr align="center">
			<%-- <td width="13%">共为<%=maxPage%>页
						</td>
						<td width="16%">共有<%=pageNumber%>条记录
						</td>
						<td width="14%">当前为第<%=number+1%>页
						</td> --%>
			<%-- <td width="19%">
							<%if((number+1)==1){%>  上一页  <%}else{%> <a
							href="afficheAction.do?action=0&i=<%=number-1%>">上一页</a>
						</td>
						<%}%>
						<td width="18%">
							<%if(maxPage<=(number+1)){%>  下一页 <%}else{%> <a
							href="afficheAction.do?action=0&i=<%=number+1%>">下一页</a>
						</td>
						<%}%> --%>
			<td></td>

			<td width="20%">&nbsp; <a href="bg-afficheInsert.jsp"><img
					src="image/bg-add.gif" width="9" height="9">&nbsp;添加公告</a></td>
		</tr>
	</table>
	</td>
	</tr>
	</table>
	<jsp:include page="bg-down.jsp" flush="true" />
</body>
</html>
